<link rel="stylesheet" href="<%- Virtual_Path.Static; %>main/css/rank.css"/>
<div class="xiu-container">
    <div class="Rank-container">
        <div class="rank-mod rank-mod-anchor">
            <h2 class="tit"><i class="ico-t"></i></h2>
            <div class="panel panel-y">
                <ul class="tab" id="J_RankModAnchor">
                    <li class="active">日榜</li>
                    <li>周榜</li>
                    <li>月榜</li>
                    <li>总榜</li>
                </ul>
                <div class="con">
                    <div class="top">
                        <ul class="ranklist" id="J_RankModAnchorList1">
                        </ul>
                    </div>
                    <div class="other">
                        <ul class="ranklist" id="J_RankModAnchorList2">
                        </ul>
                    </div>
                </div>

            </div>
        </div>
        <div class="rank-mod rank-mod-rich">
            <h2 class="tit"><i class="ico-t"></i></h2>
            <div class="panel panel-f">
                <ul class="tab" id="J_RankModRich">
                    <li class="active">日榜</li>
                    <li>周榜</li>
                    <li>月榜</li>
                    <li>总榜</li>
                </ul>
                <div class="con">
                    <div class="top">
                        <ul class="ranklist" id="J_RankModRichList1">

                        </ul>
                    </div>
                    <div class="other">
                        <ul class="ranklist" id="J_RankModRichList2">

                        </ul>
                    </div>
                </div>

            </div>
        </div>
        <div class="rank-mod rank-mod-hot">
            <h2 class="tit"><i class="ico-t"></i></h2>
            <div class="panel panel-h">
                <ul class="tab" id="J_RankModHot">
                    <li class="active">日榜</li>
                    <li>周榜</li>
                    <li>月榜</li>
                    <li>总榜</li>
                </ul>
                <div class="con">
                    <div class="top">
                        <ul class="ranklist" id="J_RankModHotList1">

                        </ul>
                    </div>
                    <div class="other">
                        <ul class="ranklist" id="J_RankModHotList2">

                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <!-- 周星榜 -->
    <div class="Rank-container" style="display: none">
        <div class="rank-week-content">
            <div class="week-content-t clearfix">
                <div class="week-title">
                    <h2 class="ico-w-title" id="J_WeekRank">周星礼物榜</h2>
                </div>
                <div class="week-tab" id="J_WeekTab">
                    <a class="active" href="javascript:;" data-ajax="1">本周</a>
                    <b class="sline"></b>
                    <a href="javascript:;" data-ajax="2">上周</a>
                </div>
            </div>
            <div class="week-content-c clearfix">
                <div class="week-content" id="J_WeekContent">
                </div>
            </div>
            <div class="week-content-intro">
                <h2>周星榜规则:</h2>
                <p>1.周星礼物榜周期为每周日0时0分0秒起至下周六23时59分59秒结束。</p>
                <p>2.截止到当周周六23：59：59，周星礼物榜排名第一位的艺人/用户，即认定为获得"一星"。</p>
                <p>3.艺人每获得一星可得1000元人民币现金奖励，每多获得一星，奖励累加并额外得200元现金奖励；用户每获得一星可得100万金币（价值1000元人民币，金币奖励累加）和座驾战斗机7天使用权。</p>
                <p>4.如果周星礼物榜上礼物数量相同，则按照"先到先得"的原则认定第一位的排名。</p>
                <p>5.虚拟奖励将一个工作日内发放，艺人现金奖励将在月底与待遇一起结算。</p>
                <p>6.本活动最终解释权归全民秀直播所有。</p>
            </div>
        </div>
    </div>

</div>
<script type="text/javascript">
    $(function () {
        var Log = {
            Out: function (label, str) {
                var url = String(window.document.location.href);
                if (url.indexOf('http://www.quanminxiu.tv/') != -1 && url.indexOf('?debug') == -1) {
                    return;
                }
                if (str) {
                    console.log(label, str);
                    return;
                }
                console.log(label);
            }
        };
        //////////////////////////////////////////////
        //加载排行榜
        //////////////////////////////////////////////
        var _ThisPage = {
            //页面初始化
            Init: function () {
                _ThisPage.Rank.Init();
//                _ThisPage.WeekStat.Init();
            },
            //排行榜
            Rank:{
                PageParm: {
                    P_Get: true,
                    Loading: false, //加载中
                    Total: 0,       //总条数
                    MaxCode: "",    //MaxCode
                    Start: 0,       //开始
                    Length: 10,      //页长度
                    CurrDataTag: [] //当前数据标签
                },
                Init:function(){
                    //默认加载 周榜
                    _ThisPage.Rank.Load(0, 1);
                    _ThisPage.Rank.Load(1, 1);
                    _ThisPage.Rank.Load(2, 1);
                    $("#J_RankModAnchor li").eq(1).addClass('active').siblings().removeClass('active');
                    $("#J_RankModRich li").eq(1).addClass('active').siblings().removeClass('active');
                    $("#J_RankModHot li").eq(1).addClass('active').siblings().removeClass('active');

                    //艺人榜
                    $("#J_RankModAnchor").on("click", "li", function (e) {
                        var index = $(this).index();
                        $(this).addClass('active').siblings().removeClass('active');
                        _ThisPage.Rank.Load(0, index);
                    });
                    //富豪榜
                    $("#J_RankModRich").on("click", "li", function (e) {
                        var index = $(this).index();
                        $(this).addClass('active').siblings().removeClass('active');
                        _ThisPage.Rank.Load(1, index);
                    });
                    //人气榜
                    $("#J_RankModHot").on("click", "li", function (e) {
                        var index = $(this).index();
                        $(this).addClass('active').siblings().removeClass('active');
                        _ThisPage.Rank.Load(2, index);
                    });
                },
                Load: function (UserTypeIndex, DateTypeIndex) {
                    var userType = ["/ajax/user.user-anchor.page", "/ajax/user.user-info.page", "/ajax/user.user-anchor.page"];
                    var sortType = ["Beans", "Coin", "Anchor_Pomelo"];
                    var dateType = ["_Today", "_Week", "_Month", "_Total"];
                    var htmlID = ["#J_RankModAnchorList", "#J_RankModRichList", "#J_RankModHotList"];
                    var completeFun = [_ThisPage.Rank.onComplete1, _ThisPage.Rank.onComplete2, _ThisPage.Rank.onComplete3];
                    var url = userType[UserTypeIndex];
                    var sort = sortType[UserTypeIndex] + dateType[DateTypeIndex];

                    //人气榜的总榜，需要单独处理 Anchor_Pomelo 总榜格式
                    if (UserTypeIndex == 2 && DateTypeIndex == 3) sort = sortType[UserTypeIndex];

                    _ThisPage.Rank.PageParm.CurrDataTag[UserTypeIndex] = sort;


                    $.ajax({
                        url: url,
                        type: 'post',
                        dataType: 'json',
                        data: {
                            P_Get: true,
                            P_Total: _ThisPage.Rank.PageParm.Total,
                            P_MaxCode: _ThisPage.Rank.PageParm.MaxCode,
                            iDisplayStart: _ThisPage.Rank.PageParm.Start,
                            iDisplayLength: _ThisPage.Rank.PageParm.Length,
                            Sort_Col: sort
                            //Sort_Dir: "DESC"
                            //Sort_Col:"Beans_Total",//艺人
                            //Sort_Col:"Coin_Total",总//富豪 人气
                            //Sort_Col:"Coin_Month",月
                            //Sort_Col:"Coin_Week",周
                            //Sort_Col:"Coin_Today" 天
                        },
                        success: function (data) {
                            if (data.flag !== 0) {
                                $.CommonMain.Modal_Tip(data.msg + "(" + data.flag + ")", {Timeout: 2000});
                                return;
                            }
                            var result = _ThisPage.Rank.getResultFormat(data, UserTypeIndex);
                            completeFun[UserTypeIndex](result);
                        }
                    });
                },
                getResultFormat: function (data, UserTypeIndex) {
                    var html1 = '';
                    var html2 = '';
                    var i = 0;
                    _.forEach(data.aaData, function (ThisValue, n) {
                        var key = _ThisPage.Rank.PageParm.CurrDataTag[UserTypeIndex];
                        if (ThisValue[key] > 0) {
                            var level = "user/" + ThisValue.Level.Level;
                            if (ThisValue.IsAnchor && UserTypeIndex != 1) {
                                level = "anchor/" + ThisValue.Anchor_Level;
                            }
                            if (i < 3) {
                                html1 += '<li>' +
                                        ((ThisValue.IsAnchor == 1) ? '<a href="/room/' + ThisValue.User_ID + '" class="avatar" target="_blank">' : '<a class="avatar">') +
                                        '<img src="' + $.Common.ImageBind.UserAvatar.fnURL(ThisValue.User_ID, "80.80") + '" alt="" class="_thumb">' +
                                        '<em class="num">' + (n + 1) + '</em>' +
                                        '</a>' +
                                        '<span class="rank-name">' +
                                        ((ThisValue.IsAnchor == 1) ? '<a href="/room/' + ThisValue.User_ID + '" target="_blank">' : '<a>') +
                                        ThisValue.NickName +
                                        '</a>' +
                                        '</span>' +
                                        '<em class="ico-lev"><img src="' + _VirtualPath.Static + 'main/image/common/level/' + level + '.png" alt=""></em>' +
                                        '</li>';
                            } else {
                                html2 += '<li>' +
                                        '<em class="rank-num">' + (n + 1) + '</em>' +
                                        '<span class="rank-name">' +
                                        ((ThisValue.IsAnchor == 1) ? '<a href="/room/' + ThisValue.User_ID + '" target="_blank">' : '<a>') +
                                        ThisValue.NickName +
                                        '</a>' +
                                        '</span>' +
                                        '<em class="ico-lev"><img src="' + _VirtualPath.Static + 'main/image/common/level/' + level + '.png" alt=""></em>' +
                                        '</li>';
                            }
                            i++;
                        }

                    });
                    return {html1: html1, html2: html2};
                },
                onComplete1: function (result) {
                    $('#J_RankModAnchorList1').empty().append(result.html1);
                    $('#J_RankModAnchorList2').empty().append(result.html2);
                },
                onComplete2: function (result) {
                    $('#J_RankModRichList1').empty().append(result.html1);
                    $('#J_RankModRichList2').empty().append(result.html2);
                },
                onComplete3: function (result) {
                    $('#J_RankModHotList1').empty().append(result.html1);
                    $('#J_RankModHotList2').empty().append(result.html2);
                }
            },
            //礼物周星排行（本周） SamZhou
            WeekStat:{
                Data:{
                    MaxLength: 5 //最多显示个数
                },
                Init:function(){
                    $("#J_WeekTab").on("click", "a", function () {
                        var index = $(this).data("ajax");
                        $(this).addClass("active").siblings("a").removeClass("active");
                        Log.Out("Index, ", String(index));
                        if(index === 1){
                            _ThisPage.WeekStat.LoadWeekStarData();//新接口 本周数据
                        }else{
                            _ThisPageData.LoadData(2);//旧接口 上周数据
                        }
                    });
                    _ThisPage.WeekStat.LoadWeekStarData();
                },
                LoadWeekStarData:function (){
                    _ThisPage.WeekStat.Loading(true);
                    var url = "/ajaxs/business.rediscommon-giftuserrankingweeklist";
                    $.ajax({
                        url: url,
                        type: 'post',
                        dataType: 'json',
                        data: {
                            Gift_ID: "WeekStar",//WeekStar:所有周星礼物 其它:礼物ID(多个用,号分隔)
                            Limit_G: _ThisPage.WeekStat.Data.MaxLength,//送出人-获取数量 <=0:不获取 >0:取得数量
                            Limit_R: _ThisPage.WeekStat.Data.MaxLength//接收人-获取数量 <=0:不获取 >0:取得数量
                        },
                        success: function (data) {
                            _ThisPage.WeekStat.Result(data);
                        }
                    });
                },
                Result:function(data){
                    _ThisPage.WeekStat.Loading(false);
                    Log.Out("周星数据结果", data);
                    if (data.flag !== 0) {
                        $.CommonMain.Modal_Tip(data.msg + "(" + data.flag + ")", {Timeout: 2000});
                        return;
                    }

                    var _Html = "", _Item = "", _Top = "", _Link = "", _Text = "";
                    data.data.sort(function(a,b){
                        return (a.Gift_ID>b.Gift_ID) ? 1 : -1;
                    });
                    data.data.reverse();
                    _.forEach(data.data, function (Value, Key) {
                        Log.Out("周星", Value);
                        var TempData = {
                            fl:(Key % 2 == 1) ? "c-fr" : "c-fl",
                            Gift_Name:Value.Gift_Name,
                            AnchorData:"",
                            UserData:"",
                            ALen:0,
                            ULen:0
                        };
                        for(var i=0; i<_ThisPage.WeekStat.Data.MaxLength; i++)
                        {
                            var Index = i+1;
                            var Anchor = Value.Ranking_R[i];
                            TempData.AnchorData += (Anchor) ? GetAnchorItem1(Anchor, Index) : GetAnchorUserNoneItem(Index);

                            var User = Value.Ranking_G[i];
                            TempData.UserData += (User) ? GetUserItem1(User, Index) : GetAnchorUserNoneItem(Index);
                        }
                        _Html += _ThisPage.WeekStat.GetGiftItemHtml(TempData, Value);
                    });
                    $("#J_WeekContent").append(_Html);



                    //艺人
                    function GetAnchorItem1(Anchor, Index) {
                        if(Index > 3) return '<li class="top-'+Index+'"><span class="num num-'+Index+'"></span><div class="pro-intro"><a class="name" href="/room/'+Anchor.User_ID+'" target="_blank">'+Anchor.NickName+'</a><p class="total">收到<b>'+Anchor.Gift_Num+'</b>个</p></div></li>';
                        var html = '<li class="top-'+Index+'">' +
                                '<span class="num num-'+Index+'"></span>' +
                                '<a href="/room/'+Anchor.User_ID+'" target="_blank" class="pro-cover">' +
                                '<img src="'+$.Common.ImageBind.UserAvatar.fnURL(Anchor.User_ID, "80.80")+'" alt="'+Anchor.NickName+'">' +
                                '</a>' +
                                '<div class="pro-intro"><a class="name" href="/room/'+Anchor.User_ID+'" target="_blank">'+Anchor.NickName+'</a><p class="total">收到<b>'+Anchor.Gift_Num+'</b>个</p></div>' +
                                '</li>';
                        return html;
                    }
                    //用户
                    function GetUserItem1(User, Index){
                        if(Index > 3) return '<li class="top-'+Index+'"><span class="num num-'+Index+'"></span><div class="pro-intro"><a class="name" href="javascript:;">'+User.NickName+'</a><p class="total">送出<b>'+User.Gift_Num+'</b>个</p></div></li>';
                        var html = '<li class="top-'+Index+'">' +
                                '<span class="num num-'+Index+'"></span>' +
                                '<a href="javascript:;" class="pro-cover">' +
                                '<img src="'+$.Common.ImageBind.UserAvatar.fnURL(User.User_ID, "80.80")+'" alt="'+User.NickName+'"></a>' +
                                '<div class="pro-intro"><a class="name" href="javascript:;">'+User.NickName+'</a><p class="total">送出<b>'+User.Gift_Num+'</b>个</p></div>' +
                                '</li>';
                        return html;
                    }
                    //暂无排名 艺人 用户 带默认头像
                    function GetAnchorUserNoneItem(Index) {
                        if(Index > 3) return GetNoneItem(Index);

                        var html = '<li class="top-'+Index+' no-result">' +
                                '<span class="num num-'+Index+'"></span>' +
                                '<a href="javascript:;" class="pro-cover">' +
                                '<img src="'+$.Common.ImageBind.UserAvatar.fnURL("default", "80.80")+'" alt="default">' +
                                '</a>' +
                                '<div class="pro-intro">' +
                                '<a class="name" href="javascript:;" style="line-height: 46px;color: #c6c6c6;">暂无排名~</a>' +
                                '</div>' +
                                '</li>';
                        return html;
                    }
                    //暂无排名 无头像
                    function GetNoneItem(Index) {
                        var html = '<li class="top-'+Index+' no-result">' +
                                '<span class="num num-'+Index+'"></span>' +
                                '<div class="pro-intro">' +
                                '<a class="name" href="javascript:;" style="line-height: 46px;color: #c6c6c6;">暂无排名~</a>' +
                                '</div>' +
                                '</li>';
                        return html;
                    }
                },
                GetGiftItemHtml:function(TempData, Value){
                    var html = '<div class="week-panel ' + TempData.fl + '">' +
                        '<div class="content">' +
                        '<div class="tab-content clearfix">' +
                        '<div class="week-gift clearfix">' +
                        '<div class="week-gift-intro week-gift-intro-r">' +
                        '<p class="week-gift-img"><img src="<%- Virtual_Path.Static; %>main/image/room/gift/' + Value.Gift_ID + '.png" alt="' + TempData.Gift_Name + '"></p>' +
                        '<p class="week-gift-name">' + TempData.Gift_Name + '</p>' +
                        '</div>' +
                        '</div>' +
                        '<div class="u-list clearfix">' +
                        '<div class="u-list-info anchor">' +
                        '<h3>艺人</h3>' +
                        '<ul>' +
                        TempData.AnchorData +
                        '</ul>' +
                        '</div>' +
                        '<div class="u-list-info user">' +
                        '<h3>富豪</h3>' +
                        '<ul>' +
                        TempData.UserData +
                        '</ul>' +
                        '</div>' +
                        '</div>' +
                        '<div class="week-tip">艺人第一名可获得'+Value.Gift_WeekStarAward+'元现金奖励；艺人礼物保底数量' + Value.Gift_WeekStarMin + '个' +
                        '</div>' +
                        '</div>' +
                        '</div>' +
                        '</div>';
                    return html;
                },
                Loading:function(isShow){
                    if(isShow){
                        $(".week-content").html("<div class='ajax-loading' style='text-align: center;margin-top: 20px;margin-bottom: 20px;font-size: 18px'><img src='" + _VirtualPath.Static + "main/image/common/loading.gif' alt='Loading'>&nbsp;&nbsp;Loading...</div>");
                    }else{
                        $(".week-content").empty();
                    }
                }

            }
        };
        _ThisPage.Init();


        //////////////////////////////////////////////
        //周星榜
        //qushaoyun
        //qushaoyun@163.com
        //2016年8月1日11:52:44
        ////////////////////////////////////////////
        var _ThisPageData = {
            _Param: {
                Length: 5,
                Week: 1
            },
            Data: {
                GiftInfo: {},
            },
            Init: function () {
                _ThisPageData.LoadData(1);
                $(".week-content").html("<div class='ajax-loading' style='text-align: center;margin-top: 20px;margin-bottom: 20px;font-size: 18px'><img src='" + _VirtualPath.Static + "main/image/common/loading.gif' alt='Loading'>&nbsp;&nbsp;Loading...</div>");
                $("#J_WeekTab").on("click", "a", function () {
                    var index = $(this).data("ajax");
                    $(this).addClass("active").siblings("a").removeClass("active");
                    _ThisPageData.LoadData(index);
                    $(".week-content").html("<div class='ajax-loading' style='text-align: center;margin-top: 20px;margin-bottom: 20px;font-size: 18px'><img src='" + _VirtualPath.Static + "main/image/common/loading.gif' alt='Loading'>&nbsp;&nbsp;Loading...</div>");
                });
            },
            LoadData: function (week) {
                _ThisPage.WeekStat.Loading(true);
                $.ajax({
                    url: '/ajax/business.user-weekstar',
                    type: 'post',
                    dataType: 'json',
                    data: {
                        Length: 5,
                        Week: week
                    },
                    success: function (data) {
                        if (data.flag !== 0) {
                            $.CommonMain.Modal_Tip(data.msg + "(" + data.flag + ")", {Timeout: 2000});
                            return;
                        }
                        _ThisPageData.RenderDataArr(data.data);
                    }
                });
            },
            RenderDataArr: function (data) {
                _ThisPage.WeekStat.Loading(false);
                var _GiftObj = _ThisPageData.Data.GiftInfo;
                var oindex= 0;
                _.forEach(data, function (value, key) {
                    if (_GiftObj[value.Gift_ID] == null) {
                        _GiftObj[value.Gift_ID] = {
                            Gift_ID: null,
                            Anchor: [],
                            User: []
                        };
                    }
                    _GiftObj[value.Gift_ID].Gift_ID = value.Gift_ID;
                    _GiftObj[value.Gift_ID].Gift_Name = value.Gift_Name;
                    _GiftObj[value.Gift_ID].WeekStarAward = value.WeekStarAward;
                    _GiftObj[value.Gift_ID].WeekStarMin = value.WeekStarMin;
                    if (value.Type == 1) {
                        _GiftObj[value.Gift_ID].Anchor = value.Rank;
                    } else if (value.Type == 2) {
                        _GiftObj[value.Gift_ID].User = value.Rank;
                    }
                });
                var datas = _.sortBy(_ThisPageData.Data.GiftInfo, [function(ThisVal) { return !ThisVal.Gift_ID; }]);
                _ThisPageData.RenderData(datas);
            },
            RenderData: function (data) {
                var _Html = "", _Item = "", _Top = "", _Link = "", _Text = "";
                $(".week-content").html("");
                _.forEach(data, function (Val, key) {
                    Log.Out("上周星数据结果", Val);
                    var TempData = {};
                    TempData.fl = (key % 2 == 0) ? "c-fl" : "c-fr";
                    TempData.AnchorData = "";
                    TempData.UserData = "";
                    TempData.ALen = Val.Anchor.length;
                    TempData.ULen = Val.User.length;
                    if (Val.Anchor) {
                        _.forEach(Val.Anchor, function (val, key) {
                            _Link = ' href="/room/' + val.User_ID + '" target=_blank';
                            if (key < 3) {
                                _Top = '<a ' + _Link + ' class="pro-cover">' +
                                    '<img src="' + $.Common.ImageBind.UserAvatar.fnURL(val.User_ID, "80.80") + '" alt="' + val.NickName + '">' +
                                    '</a>';
                            } else {
                                _Top = "";
                            }
                            _Text = '收到';
                            TempData.AnchorData += '<li class="top-' + (key + 1) + '">' +
                                '<span class="num num-' + (key + 1) + '"></span>' +
                                _Top +
                                '<div class="pro-intro">' +
                                '<a class="name" ' + _Link + '>' + val.NickName + '</a>' +
                                '<p class="total">' + _Text + '<b>' + val.SUM_Number + '</b>个</p>' +
                                '</div>' +
                                '</li>';
                        });

                        for (i = 0; i < 5 - TempData.ALen; i++) {
                            _Link = ' href="javascript:;"';
                            if ((i + TempData.ALen + 1) > 3) {
                                _Top = "";
                            } else {
                                _Top = '<a ' + _Link + ' class="pro-cover">' +
                                    '<img src="' + $.Common.ImageBind.UserAvatar.fnURL("default", "80.80") + '" alt="default">' +
                                    '</a>';
                            }
                            TempData.AnchorData += '<li class="top-' + (i + TempData.ALen + 1) + ' no-result">' +
                                '<span class="num num-' + (i + TempData.ALen + 1) + '"></span>' +
                                _Top +
                                '<div class="pro-intro">' +
                                '<a class="name" ' + _Link + ' style="line-height: 46px;color: #c6c6c6;">暂无排名~</a>' +
                                '</div>' +
                                '</li>';
                        }
                    }
                    if (Val.User) {
                        _.forEach(Val.User, function (val, key) {
                            _Link = ' href="javascript:;"';
                            if (key < 3) {
                                _Top = '<a ' + _Link + ' class="pro-cover">' +
                                    '<img src="' + $.Common.ImageBind.UserAvatar.fnURL(val.User_ID, "80.80") + '" alt="' + val.NickName + '">' +
                                    '</a>';
                            } else {
                                _Top = "";
                            }

                            _Text = '送出';
                            TempData.UserData += '<li class="top-' + (key + 1) + '">' +
                                '<span class="num num-' + (key + 1) + '"></span>' +
                                _Top +
                                '<div class="pro-intro">' +
                                '<a class="name" ' + _Link + '>' + val.NickName + '</a>' +
                                '<p class="total">' + _Text + '<b>' + val.SUM_Number + '</b>个</p>' +
                                '</div>' +
                                '</li>';
                        });
                        for (i = 0; i < 5 - TempData.ULen; i++) {
                            _Link = ' href="javascript:;"';
                            if ((i + TempData.ULen + 1) > 3) {
                                _Top = "";
                            } else {
                                _Top = '<a ' + _Link + ' class="pro-cover">' +
                                    '<img src="' + $.Common.ImageBind.UserAvatar.fnURL("default", "80.80") + '" alt="default">' +
                                    '</a>';
                            }
                            TempData.UserData += '<li class="top-' + (i + TempData.ULen + 1) + ' no-result">' +
                                '<span class="num num-' + (i + TempData.ULen + 1) + '"></span>' +
                                _Top +
                                '<div class="pro-intro">' +
                                '<a class="name" ' + _Link + ' style="line-height: 46px;color: #c6c6c6;">暂无排名~</a>' +
                                '</div>' +
                                '</li>';
                        }
                    }
                    _Html += '<div class="week-panel ' + TempData.fl + '">' +
                        '<div class="content">' +
                        '<div class="tab-content clearfix">' +
                        '<div class="week-gift clearfix">' +
                        '<div class="week-gift-intro week-gift-intro-r">' +
                        '<p class="week-gift-img"><img src="<%- Virtual_Path.Static; %>main/image/room/gift/' + Val.Gift_ID + '.png" alt="' + TempData.Gift_Name + '"></p>' +
                        '<p class="week-gift-name">' + Val.Gift_Name + '</p>' +
                        '</div>' +
                        '</div>' +
                        '<div class="u-list clearfix">' +
                        '<div class="u-list-info anchor">' +
                        '<h3>艺人</h3>' +
                        '<ul>' +
                        TempData.AnchorData +
                        '</ul>' +
                        '</div>' +
                        '<div class="u-list-info user">' +
                        '<h3>富豪</h3>' +
                        '<ul>' +
                        TempData.UserData +
                        '</ul>' +
                        '</div>' +
                        '</div>' +
                        '<div class="week-tip">艺人第一名可获得'+ Val.WeekStarAward +'元现金奖励；艺人礼物保底数量' + Val.WeekStarMin + '个' +
                        '</div>' +
                        '</div>' +
                        '</div>' +
                        '</div>';

                });
                $("#J_WeekContent").append(_Html);
            }
        };
        //_ThisPageData.Init();
    });
</script>